//
//  SEATools.h
//  GoodsHoster
//
//  Created by 梧桐树 on 16/4/6.
//  Copyright © 2016年 梧桐树. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define WIDTH  [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
#define UserDefault [NSUserDefaults standardUserDefaults]
#define WEB @"http://101.200.81.49/"
#define IMAGEWEB @"http://101.200.81.49/tpl_admin/simpleboot/Public/Upload/"
#define RGBCOLOR(r, g, b)   [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]
@interface SEATools : NSObject
#pragma mark 钥匙链方法
//保存钥匙链
+ (void)save:(NSString *)service data:(id)data;
//获取钥匙链
+ (id)load:(NSString *)service;
//删除钥匙链
+ (void)dele:(NSString *)service;
#pragma mark 16位色值转颜色
//使用方法，传入字符串格式@"#XXXXXX"
+(UIColor *)stringToColor: (NSString *) stringToConvert;
#pragma mark 网络请求
//拼接图片地址（url）
+(NSURL *)getImaurl:(NSString *)img;
#pragma mark 小菊花转起来
/*
 //添加转圈
 UIViewController *control= [self getCurrentVC];
 UIView *hi=[self getMyView];
 UIActivityIndicatorView *testActivityIndicator=[self getJuhua];
 [hi addSubview:testActivityIndicator];
 [control.view addSubview:hi];
 */
/*
 // 结束旋转
 [testActivityIndicator stopAnimating];
 [testActivityIndicator removeFromSuperview];
 [hi removeFromSuperview];
 */

//获取当前界面
+(UIViewController *)getCurrentVC;
//创建小菊花
+(UIActivityIndicatorView*)getJuhua;
//创建全屏View
+(UIView *)getMyView;
#pragma mark 正则匹配手机号
+ (BOOL)checkTelNumber:(NSString *) telNumber;
#pragma mark 正则匹配用户密码6-18位数字和字母组合
+ (BOOL)checkPassword:(NSString *) password;
#pragma mark 正则匹配用户姓名,20位的中文或英文
+ (BOOL)checkUserName : (NSString *) userName;
#pragma mark 正则匹配用户身份证号
+ (BOOL)checkUserIdCard: (NSString *) idCard;
#pragma mark 正则匹员工号,12位的数字
+ (BOOL)checkEmployeeNumber : (NSString *) number;
#pragma mark 正则匹配URL
+ (BOOL)checkURL : (NSString *) url;
#pragma mark 加密解密
+(NSString *)screct:(NSString *)data;
+(NSString *)discrect:(NSString *)data;
#pragma mark 获取次日或之后时间
+(NSString *)getTomorrowDay:(NSDate *)aDate dayjia:(int)dayjia;
@end
